package com.linkit.model;

import android.graphics.Bitmap;

public class Article implements Comparable<Article>{
	/**Loại media: 0: ảnh, 1: video*/
	public int type;
	public String title;
	public String avatar;
	public Bitmap avatarImg;
	public String content;
	public long time;
	public String linkComments = null;
	public boolean isLoadLink = false;
	public int viewCount;
	public int likeCount;
	public int commentCount;
	public int shareCount;
	
	
	@Override
	public int compareTo(Article another) {
		int ret = 0;
		if(time - another.time > 0){
			ret = 1;
		}else if(time - another.time < 0){
			ret = -1;
		}
		return ret;
	}
}
